﻿using HardcoreGame.Content.Items.Weapons.Sets.Heavy;
using Terraria;
using Terraria.GameContent.ItemDropRules;
using Terraria.ID;
using Terraria.ModLoader;

namespace HardcoreGame.Content.Items.Bosses.PumpkinBoy
{
    public class PumpkingBag : ModItem
    {
        public override void SetStaticDefaults()
        {
            ItemID.Sets.BossBag[Type] = true;
            ItemID.Sets.PreHardmodeLikeBossBag[Type] = true;
            Item.ResearchUnlockCount = 3;
        }

        public override void SetDefaults()
        {
            Item.maxStack = Item.CommonMaxStack;
            Item.consumable = true;
            Item.width = 24;
            Item.height = 24;
            Item.rare = ItemRarityID.Purple;
            Item.expert = true;
        }
        public override bool CanRightClick()
        {
            return true;
        }
        public override void ModifyItemLoot(ItemLoot itemLoot)
        {
            itemLoot.Add(ItemDropRule.NotScalingWithLuck(ModContent.ItemType<PumpkinBoyTrophy>(), 7));
            itemLoot.Add(ItemDropRule.Common(ModContent.ItemType<Reaper>(), 2, 1));
            itemLoot.Add(ItemDropRule.CoinsBasedOnNPCValue(ModContent.NPCType<NPCs.Bosses.PB.PumpkinBoy>()));
            itemLoot.Add(ItemDropRule.Common(ModContent.ItemType<PumpkinBomb>(), 2, 50, 75));
        }
    }
}
